package com.ruoyi.douyin.controller.open;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.douyin.service.open.HotVideoDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/douyin/open/data/hot")
public class HotVideoData {

    @Autowired
    private HotVideoDataService hotVideoDataService;

    /**
     * 获取实时热点词
     */
    @GetMapping("word")
    public AjaxResult hotWord() {
        return hotVideoDataService.hotWord();
    }

    /**
     * 获取上升词
     */
    @GetMapping("up/word")
    public AjaxResult upWord() {
        return hotVideoDataService.hotWord();
    }

    /**
     * 获取热点词聚合的视频
     */
    @GetMapping("collect/word")
    public AjaxResult collectWord() {
        return hotVideoDataService.hotWord();
    }
}
